<script setup lang="ts">
import HotMusicList from '@/components/home/HotMusicList.vue'
import RecentPlayList from '@/components/home/RecentPlayList.vue'

</script>

<template>
  <div class="home">
    <section class="hot-music">
      <h2>推荐</h2>
      <HotMusicList />
    </section>

    <section class="recent-played">
      <h2>最近播放</h2>
      <RecentPlayList />
    </section>
  </div>
</template>

<style scoped lang="scss">
.home {
  padding: 20px 30px;
  
  section {
    margin-bottom: 60px;

    h2 {
      font-size: 28px;
      font-weight: 600;
      margin-bottom: 30px;
      color: var(--primary-color);
      position: relative;
      padding-left: 15px;
      
      &::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 20px;
        background: linear-gradient(to bottom, 
          color-mix(in srgb, var(--theme-color) 95%, white), 
          var(--theme-color)
        );
        border-radius: 2px;
      }
    }
  }
}
</style>
